var status = -1;
var selectionLog = [];
var map = [106030000, 106030200, 106030210];
var loc = [
    [-431, 192],
    [1160, 22],
    [-1248, 142]
];
var photo = [4034107, 4034108, 4034109];

function start() {
    action(1, 0, 0)
}

function action(c, b, a) {
    if (status == 0 && c == 0) {
        im.dispose();
        return
    }
    im.openCamera(0, 1, [], [], 0, 0, 0, 0);
    im.dispose()
};